module.exports = {
  __config__: {
    label: "卡片视图",
    tag: "cardView",
    tagIcon: "cardView",
    // defaultValue: { value: undefined, code: "", type: "const", prop: "" },
    span: 24,
    showLabel: true,
    labelWidth: null,
    layout: "colFormItem", //
    required: false,
    eventTypes: [
      {
        text: '新建或编辑',
        name: 'buttonClick',
        suffix: '_onbuttonClick',
        params: '{type, data}'
      },
      {
        text: '点击页数回调',
        name: 'changePages',
        suffix: '_onchangePages',
        params: 'obj'
      },
    ],
  },
  style: {},
  tip: "",
  readonly: false,
  disabled: false,
  // 自定义模版渲染
  optionTemplate: {
    isEnable: false,
    template: `<template v-slot:status='data'>{{data.data.status}}</template>
    <template v-slot:other='data'>{{data.data.title}}</template>`,
    tips:'data 表示每个卡片的数据对象'
  },
  extConfig: {
    // checkbox
    isSelected: false,
    // 卡片数据
    cardArr: [],
    isButton:true,
    // 数据总数，
    totla:0,
    cardWidth: 8
  },
};
